public class CourtStateOver : AbstractCourtState
{
	public static CourtStateOver instance;

	private CourtStateOver()
	{
	}

	public static CourtStateOver getInstance()
	{
		if (instance == null)
		{
			instance = new CourtStateOver();
		}
		return instance;
	}

	public override void enter(Court owner)
	{
		base.enter(owner);
		owner.teamUser.setIsAllAI(_isAllAI: true);
		for (int i = 0; i < 5; i++)
		{
			owner.teamUser.getPlayer(i).AI.do_quarterend();
			owner.teamComputer.getPlayer(i).AI.do_quarterend();
		}
		Instance<CameraController>.instance.myAnimation[AnimationName.camera_opencourt].time = Instance<CameraController>.instance.myAnimation[AnimationName.camera_opencourt].length;
		Instance<CameraController>.instance.myAnimation[AnimationName.camera_opencourt].speed = -0.7f;
		Instance<CameraController>.instance.myAnimation.Play(AnimationName.camera_opencourt);
		owner.Invoke("showGameOver", 3f);
	}
}
